package com.zzh.tools;

import android.content.Context;
import android.text.TextUtils;

public class ToolsConfig {

    public static Context mContext;
    public static String mSPName = "base";
    public static boolean mNoticePrint = false;
    public static boolean mIsDebug = true;
    public static String mDebugTag = "base_log";

    public static void init(Context context, String spName) {
        mContext = context;
        if (!TextUtils.isEmpty(spName)) mSPName = spName;
    }

    public static void configNoticePrint (boolean noticePrint) {
        mNoticePrint = noticePrint;
    }

    public static void configDebug (boolean isDebug, String debugTag) {
        mIsDebug = isDebug;
        if (!TextUtils.isEmpty(debugTag)) {
            mDebugTag = debugTag;
        }
    }
}
